// 执行dotenv 把.env里面的数据放到 process.env 并导出
const dotenv = require("dotenv");
dotenv.config();

// console.log(process.env.APP_PORT);

const fs = require('fs')
const path = require('path')
const PRIVATE_KEY = fs.readFileSync(path.resolve(__dirname,'./keys/private.key'));
const PUBLIC_KEY = fs.readFileSync(path.resolve(__dirname,'./keys/public.key'));

module.exports = {
  APP_PORT,

  MYSQL_HOST,
  MYSQL_PORT,
  MYSQL_DATABASE,
  MYSQL_USER,
  MYSQL_PASSWORD,


} = process.env;


module.exports.PRIVATE_KEY = PRIVATE_KEY
module.exports.PUBLIC_KEY = PUBLIC_KEY